package br.com.psu.protocom.builder;

import java.util.List;

import br.com.psu.protocom.message.ServiceMessage;
import br.com.psu.protocom.message.body.ServiceMessageBody;
import br.com.psu.protocom.message.header.ServiceMessageHeader;
import br.com.psu.protocom.service.Action;

public class ServiceMessageBuilder {

	private ServiceMessage serviceMessage;
	private ServiceMessageBody messageBody;
	private ServiceMessageHeader messageHeader;

	public ServiceMessageBuilder() {
		super();
	}

	public ServiceMessageBuilder requestHeader(String user, String password,
			String latitude, String longitude) {
//		messageHeader = new ServiceMessageHeader(user, password, latitude,
//				longitude);	
		return this;
	}
	
	public ServiceMessageBuilder responseHeader(){
		messageHeader = new ServiceMessageHeader();
		return this;
	}

	public ServiceMessageBuilder body(List<Action> services) {
		messageBody = new ServiceMessageBody(services);
		return this;
	}
	
	public ServiceMessage build(){
		//serviceMessage = new ServiceMessage(messageHeader, messageBody);
		return serviceMessage;
	}

}
